package com.ruoyi.user.cartype.domain;

import com.ruoyi.user.carbrand.domain.CarBrand;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 车辆类型对象 car_type
 * 
 * @author zx
 * @date 2025-09-14
 */
public class CarType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id主键 */
    private Long id;

    /** 所属品牌（关联车辆品牌表car_brand的id） */
    @Excel(name = "所属品牌", readConverterExp = "关=联车辆品牌表car_brand的id")
    private Long bid;

    /** 车型 */
    @Excel(name = "车型")
    private String name;

    /** 图片路径（可为空） */
    @Excel(name = "图片路径", readConverterExp = "可=为空")
    private String img;

    /** 删除状态（0：未删除，1：已删除） */
    private Integer del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBid(Long bid) 
    {
        this.bid = bid;
    }

    public Long getBid() 
    {
        return bid;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }


    public CarBrand getCarBrand() {
        return carBrand;
    }

    public void setCarBrand(CarBrand carBrand) {
        this.carBrand = carBrand;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bid", getBid())
            .append("name", getName())
            .append("img", getImg())
            .append("del", getDel())
            .append("carBrand", getCarBrand())
            .toString();
    }
    //关联品牌
    private CarBrand carBrand;
}
